@Repository
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th=
        "http://www.thymeleaf.org" lang="en">
<head th:replace="fragments/header :: head">
</head>
<body>
<div class="container">
    <div class="m-a-1">
        <h3 class="text-center">欢迎购书，你的订单信息汇总</h3>
        <table class="table table-bordered table-striped p-a-1">
            <thead>
            <tr>
                <th>图书封面</th>
                <th>图书名称</th>
                <th>购买数量</th>
                <th>图书价格</th>
                <th>用户操作 </th>
            </tr>
            </thead>
            <tbody>
            <tr th:if="${#lists.isEmpty(order.books)}">
                <td colspan="5" class="text-xs-center">你的订单为空
                </td>
            </tr>
            <tr th:each="orderBook : ${order.books}">
                <td>
                    <img width="90" th:src="@{|/bookImage?bookId=
${orderBook.book.bookId}|}"/>
                </td>
                <td>[[${orderBook.book.bookName}]]</td>
                <td>[[${orderBook.quantity}]] </td>
                <td class="text-xs-right">
                    [[${orderBook.book.bookPrice}]] 元
                </td>
                <td class="text-xs-center">
                    <a class="btn btn-sm btn-danger"
                       th:href="@{'/order/removeBook/{bookId}'(bookId=
${orderBook.book.bookId})}">删除 </a>
                </td>
            </tr>
            </tbody>
            <tfoot>
            <tr>
                <td colspan="4" class="text-right">合计:</td>
                <td th:unless="${#lists.isEmpty(order.books)}" class=
                        "text-xs-right">[[${order.orderPrice}]] 元
                <td th:if="${#lists.isEmpty(order.books)}" class=
                        "text-xs-right">[[${order.orderPrice}]] 0.0
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
    <div class = "col-12 text-right">
        <a class="btn btn-primary" th:href="@{/home}">继续购物</a>
        <a class="btn btn-success" th:href="@{/order/createOrder}">结算 </a>
    </div>
</div>
</body>
</html>